<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html>
<head>
    <!--head-->
    <head>
    <meta charset="UTF-8">
    <title><?php echo ((isset($title ) && ($title !== ""))?($title ):"微校云"); ?></title>
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no">
    <link rel="stylesheet" href="<?php echo (C("WEUI_CSS")); ?>weui.css">
    <link rel="stylesheet" href="<?php echo (C("TSOO")); ?>">
    <script src="<?php echo (C("JQ")); ?>"></script>
    <script src="<?php echo (C("WEUI_JS")); ?>weui.min.js"></script>
    




</head>
</head>
<body>
<!-- 头部 -->

<?php if(C('IS_NAVBAR') != 0): ?><div class="weui-tabbar" style="position: fixed;bottom:0;">
        <a href="#" class="weui-tabbar__item " onclick="changeIndexStatus()">
                        <span style="display: inline-block;position: relative;">
                            <img id="indexImg" src="<?php echo (C("HOME_IMG")); ?>index<?php echo ((isset($nav1) && ($nav1 !== ""))?($nav1):'1'); ?>.png" alt=""
                                 class="weui-tabbar__icon">
                        </span>
            <p id="index" class="weui-tabbar__label <?php echo ($col1); ?>">首页</p>
        </a>
        <a href="#" class="weui-tabbar__item " onclick="changeServiceStatus()">
            <img id="serverImg" src="<?php echo (C("HOME_IMG")); ?>service<?php echo ((isset($nav2) && ($nav2 !== ""))?($nav2):'1'); ?>.png" alt="" class="weui-tabbar__icon">
            <p id="service" class="weui-tabbar__label <?php echo ($col2); ?>">客服</p>
        </a>
        <a href="#" class="weui-tabbar__item" onclick="changeCarStatus()">
                        <span style="display: inline-block;position: relative;">
                            <img id="carImg" src="<?php echo (C("HOME_IMG")); ?>riding<?php echo ((isset($nav3) && ($nav3 !== ""))?($nav3):'1'); ?>.png" alt="" class="weui-tabbar__icon">
                        </span>
            <p id="car" class="weui-tabbar__label" <?php echo ($col3); ?>>我的订单</p>
        </a>
        <a href="#" class="weui-tabbar__item" onclick="changeMyStatus()">
            <img id="myImg" src="<?php echo (C("HOME_IMG")); ?>my<?php echo ((isset($nav4) && ($nav4 !== ""))?($nav4):'1'); ?>.png" alt="" class="weui-tabbar__icon">
            <p id="my" class="weui-tabbar__label <?php echo ($col4); ?>">我的</p>
        </a>

        <script>

            //初始化首页按钮
            $(function () {
                if('<?php echo ($col1); ?>'!==''){
                    $("#index").addClass("mycolor");
                    $('#indexImg').attr('src', '<?php echo (C("HOME_IMG")); ?>index2.png');
                }

            });


            function changeIndexStatus() {
                window.location.href = "<?php echo U('Home/Index/index');?>";
                /*改变导航颜色*/

            }

            function changeServiceStatus() {

                window.location.href = "<?php echo U('Home/Server/index');?>";

            }

            function changeCarStatus() {

                window.location.href = "<?php echo U('Home/MyTicket/getHadNoPayTicket');?>";

            }

            function changeMyStatus() {
                /*改变导航颜色*/
                window.location.href = "<?php echo U('Home/User/index');?>";

            }

        </script>
    </div><?php endif; ?>

<!-- /头部 -->

<!-- 主体 -->


    <div class="page msg_warn js_show">
        <div class="weui-msg">
            <div class="weui-msg__icon-area"><i class="weui-icon-warn weui-icon_msg"></i></div>
            <div class="weui-msg__text-area">
                <h2 class="weui-msg__title"><?php echo ($msg); ?></h2>
                <p class="weui-msg__desc"><?php echo ($msgDetail); ?><a href="javascript:void(0);"><?php echo ($url); ?></a></p>
            </div>
            <div class="weui-msg__opr-area">
                <p class="weui-btn-area">
                    <a href="javascript:history.back();" class="weui-btn weui-btn_primary">返回</a>
                </p>
            </div>
            <div class="weui-msg__extra-area">
                <div class="weui-footer">
                    <p class="weui-footer__links">
                        <a href="<?php echo U('Home/Index/index');?>" class="weui-footer__link">回到主页</a>
                    </p>
                    <p class="weui-footer__text">Copyright © 2008-2016 weui.io</p>
                </div>
            </div>
        </div>
    </div>



<!-- /主体 -->

<!-- 底部 -->



<!--用于将配置注入到js-->
<!--将配置加载到js-->
<script type="text/javascript">
(function(){
	var ThinkPHP = window.Think = {
	    "WEB_API": "<?php echo C('WEB_API');?>",
		"ROOT"   : "/WeChat/Bus", //当前网站地址
		"APP"    : "/WeChat/Bus/index.php", //当前项目地址
		"PUBLIC" : "/WeChat/Bus/Public", //项目公共目录地址
		"DEEP"   : "<?php echo C('URL_PATHINFO_DEPR');?>", //PATHINFO分割符
		"MODEL"  : ["<?php echo C('URL_MODEL');?>", "<?php echo C('URL_CASE_INSENSITIVE');?>", "<?php echo C('URL_HTML_SUFFIX');?>"],
		"VAR"    : ["<?php echo C('VAR_MODULE');?>", "<?php echo C('VAR_CONTROLLER');?>", "<?php echo C('VAR_ACTION');?>"]
	}
})();
</script>

<!-- 用于加载js代码 -->



<!--顺序不要颠掉-->



<!-- /底部 -->
</body>
</html>